Plaid Cymru says renewable energy projects would have to hand over stakes of up to 25% to local communities.